package com.bajiao.entity.store;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 商家账号
 * @Author: FanJq
 * @Date:   2024-12-24
 * @Version: V1.0
 */
@Data
@TableName("tb_store_user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_store_user对象", description="商家账号")
public class StoreUser {

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键", required = true, position = 0)
	private String id;
	/**门店id*/
	@Excel(name = "门店id", width = 15)
    @ApiModelProperty(value = "门店id", required = true, position = 10)
	private String storeId;
	/**身份 1-主账号 2-子账号*/
	@Excel(name = "身份 1-主账号 2-子账号", width = 15)
    @ApiModelProperty(value = "身份 1-主账号 2-子账号", required = true, position = 20)
	private Integer type;
	/**账号*/
	@Excel(name = "账号", width = 15)
    @ApiModelProperty(value = "账号", required = true, position = 30)
	private String account;
	/**密码*/
	@Excel(name = "密码", width = 15)
    @ApiModelProperty(value = "密码", required = true, position = 40)
	private String password;
	/**密码盐*/
	@Excel(name = "密码盐", width = 15)
    @ApiModelProperty(value = "密码盐", required = true, position = 50)
	private String salt;
	/**权限集合*/
	@Excel(name = "权限集合", width = 15)
    @ApiModelProperty(value = "权限集合", required = true, position = 60)
	private String permission;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, position = 70)
	private Date createTime;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间", required = true, position = 80)
	private Date updateTime;

	@TableField(exist = false)
	@ApiModelProperty(value = "店铺名称")
	private String title;
}
